.class Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4$1;
.super Ljava/lang/Object;
.source "SearchByLineResultActivity.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4;->run()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroid/widget/AdapterView$OnItemClickListener;"
    }
.end annotation


# instance fields
.field final synthetic this$1:Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4;


# direct methods
.method constructor <init>(Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4$1;->this$1:Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4;

    .line 100
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 7
    .parameter
    .parameter "view"
    .parameter "position"
    .parameter "id"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 104
    .local p1, parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    move-object v0, p1

    check-cast v0, Landroid/widget/ListView;

    move-object v3, v0

    .line 105
    .local v3, listview:Landroid/widget/ListView;
    invoke-virtual {v3, p3}, Landroid/widget/ListView;->getItemAtPosition(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/Line;

    .line 107
    .local v2, line:Lcom/teewoo/app/bus/model/Line;
    iget-object v4, p0, Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4$1;->this$1:Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4;

    invoke-static {v4}, Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4;->access$0(Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4;)Lcom/teewoo/app/bus/ui/SearchByLineResultActivity;

    move-result-object v4

    iget-object v5, p0, Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4$1;->this$1:Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4;

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4;->access$0(Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4;)Lcom/teewoo/app/bus/ui/SearchByLineResultActivity;

    move-result-object v5

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/SearchByLineResultActivity;->access$2(Lcom/teewoo/app/bus/ui/SearchByLineResultActivity;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/Line;->getId()Ljava/lang/Integer;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/Integer;->intValue()I

    move-result v6

    invoke-static {v4, v5, v6}, Lcom/teewoo/app/bus/ui/SearchByLineResultActivity;->access$7(Lcom/teewoo/app/bus/ui/SearchByLineResultActivity;Ljava/lang/String;I)V

    .line 108
    new-instance v1, Landroid/content/Intent;

    .line 109
    iget-object v4, p0, Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4$1;->this$1:Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4;

    invoke-static {v4}, Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4;->access$0(Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4;)Lcom/teewoo/app/bus/ui/SearchByLineResultActivity;

    move-result-object v4

    .line 110
    const-class v5, Lcom/teewoo/app/bus/ui/LineDetailActivity;

    .line 108
    invoke-direct {v1, v4, v5}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 111
    .local v1, intentToDedetail:Landroid/content/Intent;
    const-string v4, "com.teewoo.app.bus.lineId"

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/Line;->getId()Ljava/lang/Integer;

    move-result-object v5

    if-nez v5, :cond_0

    const/4 v5, -0x1

    :goto_0
    invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 112
    const-string v4, "com.teewoo.app.bus.lineName"

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/Line;->getName()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 113
    iget-object v4, p0, Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4$1;->this$1:Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4;

    invoke-static {v4}, Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4;->access$0(Lcom/teewoo/app/bus/ui/SearchByLineResultActivity$4;)Lcom/teewoo/app/bus/ui/SearchByLineResultActivity;

    move-result-object v4

    invoke-virtual {v4, v1}, Lcom/teewoo/app/bus/ui/SearchByLineResultActivity;->startActivity(Landroid/content/Intent;)V

    .line 114
    return-void

    .line 111
    :cond_0
    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/Line;->getId()Ljava/lang/Integer;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

    move-result v5

    goto :goto_0
.end method
